package org.blog.entity.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class MessageParam extends PageParam {


    //    留言编号
    private Integer messageId;
    //    被留言用户ID
    private Integer userName;
    //    发表留言用户的ID
    private Integer readerName;
    //    留言内容
    private String messageContent;
    //    留言时间
    private Date messageTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
